﻿// -----------------------------------------------------------------------
// <copyright file="BookSubscriptionViewModel.cs" company="EPAM Systems">
////Copyright (c) EPAM Systems, 2012. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------

namespace MBOP.Website.ViewModels.Library
{
	#region Usings

	using System;
	using System.ComponentModel.DataAnnotations;

	using MBOP.Core.Entities.Library;

	#endregion

	/// <summary>
	/// Represents view model for book subscription.
	/// </summary>
	public class BookSubscriptionViewModel
	{
		/// <summary>
		/// Gets or sets the person's common name.
		/// </summary>
		public string PersonCommonName { get; set; }

		/// <summary>
		/// Gets or sets the subscription creation date.
		/// </summary>
		public DateTime Date { get; set; }

		/// <summary>
		/// Gets or sets the subscription state.
		/// </summary>
		public SubscribeState SubscriptionState { get; set; }

		/// <summary>
		/// Gets or sets the subscription set.
		/// </summary>
		public string SubscriptionSet { get; set; }

		/// <summary>
		/// Gets or sets the book id.
		/// </summary>
		[Required]
		public int BookID { get; set; }

		/// <summary>
		/// Gets or sets the person's id.
		/// </summary>
		public string PersonID { get; set; }
	}
}